package com.huxiao.service;

import com.huxiao.dao.UserDao;
import com.huxiao.dao.UserDaoImpl;
import com.huxiao.dao.UserDaoMySQLImpl;


public class UserServiceImpl implements UserService {
    //业务层调Dao层
//    private UserDao userDao = new UserDaoImpl();
    private UserDao userDao;

//    利用Set进行动态实现值的注入！
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void getUser(){
        userDao.getUser();
    }

}
